package net.zjitc.service;

import com.github.pagehelper.PageInfo;
import net.zjitc.pojo.Product;
import net.zjitc.vo.PageBean;
import net.zjitc.vo.ProductVo;

import java.util.List;

/**
 * @AUTHOR zhj
 * @DATE 2019/3/29 12:30
 */
public interface ProductService {
    List<Product> findAll();
    Product findById(String id);
    int addProduct(Product product);
    int editProduct(Product product);
    int deleteProduct(String id);
    List<Product> searchByCondition(ProductVo vo);
    PageBean<Product> serachByNameToPage(ProductVo vo,Integer currentPage, Integer pageSize);


    List<Product> findByCid(Integer cid);

    PageBean<Product> findPageProduct(Integer cid, int currentPage, int pageSize);
}
